/**
 * @copyright (C) COPYRIGHT 2022 Fortiortech Shenzhen
 * @file      xxx.c
 * @author    Fortiortech  Appliction Team
 * @since     Create:2022-08-05
 * @date      Last modify:2022-08-05
 * @note      Last modify author is Leo.li
 * @brief
 */

#include <MyProject.h>

/**
 * @brief        PI初始化
 * @date         2022-09-13
 */
void PI_Init(void)
{
    PI1_KP = SKP;
    PI1_KI = SKI;
    PI1_EK1 = 0;
    PI1_EK = 0;
    PI1_UKH = 0;
    PI1_UKL = 0;
    PI1_UKMAX = SOUTMAX;
    PI1_UKMIN = SOUTMIN;
}

/**
 * @brief        PI3初始化
 * @date         2022-09-13
 */
void PI3_Init(void)
{
    PI3_KP = _Q12(3.0);
    PI3_KI = _Q15(0.1);
    PI3_KD = 0;
    PI3_EK1 = 0;
    PI3_EK2 = 0;
    PI3_UKMAX = QOUTMAX;
    PI3_UKMIN = _Q15(0.4);
    PI3_UKH = 0;
}
